#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    int list[10000];
    for (int i = 0; i < n; i++)
    {
        int temp;
        cin >> temp;
        if (list[temp] == 0) {
            list[temp] = temp;
            cout << temp << " ";
        }
    }
    
    return 0;
}